//
//  YLAlertView.m
//  TheTenthAnniversaryOfMobileUnion
//
//  Created by kuangbiao on 2019/3/12.
//  Copyright © 2019 kuangbiao. All rights reserved.
//

#import "YLAlertView.h"

@implementation YLAlertView

- (instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"YLAlertView" owner:self options:nil];
        self = [nib objectAtIndex:0];
        self.frame = frame;
        
        self.alpha = 0;
        [UIView animateWithDuration:0.3 animations:^{
            self.alpha = 1;
        }];
        
        
    }
    return self;
}

@end
